package com.wzcl.app.service;

import com.wzcl.app.dao.model.Channel;
import com.wzcl.app.dao.model.LiveRoom;
import com.wzcl.app.model.common.MyPage;
import com.wzcl.app.model.dto.LiveRoomDto;

import java.util.List;

public interface LiveRoomService {

    LiveRoom addLiveRoom(LiveRoomDto liveRoomDto);

    LiveRoom updateLiveRoomName(LiveRoomDto liveRoomDto);

    LiveRoom setTeacher(LiveRoomDto liveRoomDto);

    LiveRoom updateLiveRoomTime(LiveRoomDto liveRoomDto);

    LiveRoom delLiveRoom(String roomNub);

    LiveRoom getAndCheckByNub(String roomNub);

    void onLive(String roomNub);

    void offLive(String roomNub);

    Channel goLive(LiveRoomDto liveRoomDto);

    String joinLive(LiveRoomDto liveRoomDto);

    LiveRoom getLiveRoomById(Integer id);

    LiveRoom getNoLiveRoom(Integer channelId);

    LiveRoom getEndLiveRoom(Integer channelId, String sessionId);

    LiveRoom save(LiveRoom liveRoom);

    List<LiveRoom> getLiveRoomList(LiveRoomDto liveRoomDto);

    MyPage<LiveRoom> getLiveRoomPage(LiveRoomDto liveRoomDto);

    String getPlayBack(LiveRoomDto liveRoomDto);
}
